package com.onec.service.channel.dao;

import com.onec.service.api.dao.BaseRepository;
import com.onec.service.channel.entity.ChannelMerchantBusiness;
import org.springframework.data.repository.RepositoryDefinition;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = ChannelMerchantBusiness.class, idClass = Long.class)
public interface ChannelMerchantBusinessRepository extends BaseRepository<ChannelMerchantBusiness, Long> {

    /**
     * 获取机构商户u业务！
     *
     * @param merchantNo
     * @param channelId
     * @param businessNo
     * @return
     */
    ChannelMerchantBusiness findByMerchantNoAndChannelIdAndBusinessNo(String merchantNo, long channelId, String businessNo);
}
